<?php

if(!defined('INEZCMS')){
	exit('Access Denied');
}
$goto=u('index');
if(empty($userlogininfo)){
    
   header("Location: ".$goto); 
}
$ezuser=$ezhand->select('member','id,ucid','id='.$userlogininfo["uid"]);

$ucid=$ezuser['ucid'];


set_cookie("userlogininfo",'',-1);

if($ucid>0){
	include EZROOT.'/comm/uc_define.php';
	include EZROOT.'/uc_client/client.php';
	echo uc_user_synlogout($ucid);
}

$_SESSION["UserLoginInfo"]="";
session_unregister("UserLoginInfo");

header("Location: ".$goto);


?>